package com.mxpio.erp.common.equipment.service;

import com.mxpio.erp.common.equipment.entity.EquipmentStockRkApplyItem;
import com.mxpioframework.system.service.BaseService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * @Description: 入库单明细
 * @Author: jeecg-boot
 * @Date:   2021-10-07
 * @Version: V1.0
 */
public interface EquipmentStockRkApplyItemService extends BaseService<EquipmentStockRkApplyItem> {

	/**
	 * 根据主键查询详情
	 */
	public List<EquipmentStockRkApplyItem> selectByMainId(String mainId);
	/**
	 * 根据主键查询详情Page
	 */
	public Page<EquipmentStockRkApplyItem> queryByMainId(Pageable page, String mainId);
	/**
	 * 根据主键查询详情Page加历史记录的接收数量和
	 */
	public Page<EquipmentStockRkApplyItem> queryRkPostingByMainId(Pageable page, String mainId);

	/**
	 * 保存详情
	 */
	boolean saveItem(EquipmentStockRkApplyItem tpmStockRkApplyItem);
	/**
	 * 根据ID更新详情
	 */
	boolean updateItemById(EquipmentStockRkApplyItem tpmStockRkApplyItem);
}
